package com.jcx.ldzj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
/**
* 业精于勤荒于嬉，行成于思毁于随！
* @author ld
* @since 2021-07-19
*/
@Data
@TableName("role_info")
@ApiModel(value="RoleInfo对象", description="角色表")
public class RoleInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色表id")
    @TableId("id_")
    private String id;

    @ApiModelProperty(value = "角色标识")
    @TableField("role_code_")
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name_")
    private String roleName;

    @ApiModelProperty(value = "备注")
    @TableField(value="remark_")
    private String remark;

    @Override
    public String toString() {
        super.toString();
        return "RoleInfo{" +
                "id='" + id + '\'' +
                ", roleCode='" + roleCode + '\'' +
                ", roleName='" + roleName + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
